package com.fimmlps.reronge.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fimmlps.reronge.entity.EntryUser;
import com.fimmlps.reronge.mapper.EntryUserMapper;
import com.fimmlps.reronge.service.IEntryUserService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.logging.Logger;

//服务实现类
@Service
public class EntryUserServiceImpl extends ServiceImpl<EntryUserMapper, EntryUser> implements IEntryUserService {
    @Override
    public EntryUser getUserByName(String name) {
        EntryUser user = baseMapper.selectOne(new QueryWrapper<EntryUser>().eq("user_name",name));
        return user;
    }
}
